/*
 * @Descripttion: 基础信息管理
 * @version:
 * @Author: 许国辉
 * @Date: 2022-09-13 22:48:02
 * @LastEditors: 许国辉
 * @LastEditTime: 2023-05-13 15:43:13
 */
import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { RoleEnum } from '/@/enums/roleEnum';

const baseInfo: AppRouteModule = {
  path: '/baseInfo',
  name: 'BaseInfo',
  component: LAYOUT,
  redirect: '/baseInfo/index',
  meta: {
    orderNo: 12,
    icon: 'ion:social-dropbox-outline',
    title: '基础信息管理',
  },
  children: [
    {
      path: 'dept',
      name: 'departmentInfo',
      meta: {
        title: '部门管理',
        ignoreKeepAlive: true,
        roles: [RoleEnum.ROOT],
      },
      component: () => import('/@/views/baseInfo/departmentInfo.vue'),
    },
    {
      path: 'emp',
      name: 'EmployeeInfo',
      meta: {
        title: '员工信息管理',
        ignoreKeepAlive: true,
        roles: [RoleEnum.ROOT, RoleEnum.ADMIN],
      },
      component: () => import('/@/views/baseInfo/employeeInfo.vue'),
    },
  ],
};

export default baseInfo;
